<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<style>
    article{
        width: 200px;
        height: 100px;
        border: 1px solid rebeccapurple;
        display: grid;
        grid-template-rows: repeat(1,1fr);
        grid-template-columns: repeat(4,1fr);
        /*justify-content: start;    !*水平方向对齐*!
        align-content: center;      !*垂直方向对齐*!*/
        justify-items: center;  /*操作内元素的整体控制水平方向*/
        align-items: center;    /*垂直方向*/
    }
    div{
        text-align: center;
        background: lightgray;
    }
    div:nth-child(2){
        justify-self: end;  /*操纵个别元素控制 水平方向*/
        align-self: start;  /*垂直方向*/
    }
</style>
<body>
<article>
    <div>1</div>
    <div>2</div>
    <div>3</div>
    <div>4</div>
</article>
</body>
</html>